DescribeStrategyTarget
Description
to obtain the asset grouping for which the specified baseline check policy is applied.
Request Method
POST
Request Path
/apsara/route/aegis/DescribeStrategyTarget
Request Parameters Common Parameters
| Name | Location | Type | Required | Sample value | Description |
|---|---|---|---|---|---|
| Type | BODY | string | No | No sample value for this parameter. | system specified parameters. Value: hc_strategy |
| Target | BODY | string | No | No sample value for this parameter. | asset group ID to which the baseline check policy is applied. |
| regionId | BODY | string | Yes | No sample value for this parameter. | region id |
| Config | BODY | string | No | No sample value for this parameter. | policy configuration information. Enter the baseline check policy ID in JSON format, for example, {"strategyId":15161} |
| version | BODY | string | No | 2016-01-01 | version of api |
Return data
| Name | Type | Sample value | Description |
|---|---|---|---|
| Target | string | no demo value | asset group ID. |
| RequestId | string | no demo value | request ID. |
| TargetType | string | no demo value | the fixed return value is groupId, indicating that the value of the Target parameter is the asset group ID. |
| StrategyTargets | array | no demo value | asset grouping information using this policy. for specific sub-items, see the following parameter description. |
| Count | integer | no demo value | total number of records returned. |
| Flag | string | no demo value | Effective ID: add: indicates a white list, that is, the asset group applies the policy. del: indicates a blacklist, that is, the asset group does not apply this policy. description generally, the system default policy is blacklisted, and user-defined policies are whitelist. |
Example
Successful Response example
{
"Target":"no demo value",
"RequestId":"no demo value",
"TargetType":"no demo value",
"StrategyTargets":"no demo value",
"Count":"no demo value",
"Flag":"no demo value"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}